pathfinder object

This method allows you to specify a function in your script that should be used as the pathfinder callback.

bool set_callback_function(pathfinder_callback@ callback)

Parameters:
callback
A handle to a function that conforms to the pathfinder_callback signature.

Return value:
true on success, false on failure.

Remarks:
For more information about the callback function such as its exact signature and its use, see the pathfinder_callback chapter.

This method must not be invoked from within the user callback.

Example:
See the main pathfinder chapter and the pathfinding tutorial.